<%@ page language="java" import="java.util.*" import="com.gxuwz.medical.domain.person.*" import="com.gxuwz.medical.domain.policy.*" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="/medical/css/pintuer.css">
<link rel="stylesheet" href="/medical/css/admin.css">
<script src="/medical/My97DatePicker/WdatePicker.js"></script>
<script src="/medical/js/jquery-1.4.4.min.js"></script>
<script src="/medical/js/pintuer.js"></script>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Policy p = new Policy();
%>
<script>
function sure(){
	var form = document.getElementById("addform");
	if(<%=p.hasSet%>==true){
		if(confirm("本年度报销政策已设置，是否重新设置?")){
			form.action+="&reset=yes";
		}
	}
	form.submit();
}

</script>
</head>
<body>

<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>设置本年度报销政策</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="<%=path %>/system/BaoxiaoServlet?method=setPolicy" id="addform"> 
    
    <div class="form-group">
        <div class="label">
          <label>年度：</label>
        </div>
        <div class="field">
          <input  type="text" class="input w50" name="year" value="<%=p.getYear() %>"  readonly="readonly"/>
	    </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>封顶线：</label>
        </div>
        <div class="field">
          <input  type="text" class="input w50" value="<%=p.getTopline() %>" name="topline"/>
	    </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>报销比例：</label>
        </div>
        <div class="field">
          <input  type="text" class="input w50" name="ratio" value="<%=p.getRatio()%>"/>
	    </div>
      </div>

    	
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="button" onclick="sure();"> 提交</button>
        </div>
      </div>
      
    </form>
  </div>
</div>

</body></html>